package com.ultrapower.hbase;

import org.apache.hadoop.hbase.TableName;

public class HbaseUtil {

	public static TableName getTableName(String tableName) {
		return TableName.valueOf(tableName);
	}

	public static long reverseTimeMillis(long currentTimeMillis) {
		return Long.MAX_VALUE - currentTimeMillis;
	}

	public static long reverseCurrentTimeMillis() {
		return reverseTimeMillis(System.currentTimeMillis());
	}

	public static long recoveryTimeMillis(long reverseCurrentTimeMillis) {
		return Long.MAX_VALUE - reverseCurrentTimeMillis;
	}
}
